package data;

import java.util.Date;

public class Task {
	private int time;
	private String description;
	private Date date;
	private Person person;
	private Project project;
	
	public Task(int time, String description, Date date, Person person, Project project) {
		super();
		this.time = time;
		this.description = description;
		this.date = date;
		this.person = person;
		this.project = project;
	}
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	
	public String toString() {
		return description+" "+time+" "+date+" "+person+" "+project;
	}
}
